]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Don't reset preemptiveAnswer when VERIFICATION_IN_PROGRESS
authorJoan Torres Lopez <joantolo@redhat.com>
Wed, 21 Jan 2026 13:23:34 +0000 (14:23 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:52:07 +0000 (18:52 +0200)
PreemptiveAnswer wasn't being used in the case where verification is in
progress and the smartcard is inserted, triggering a reset.

This change ensures a preemptive answer will be used once smartcard
service asks for the PIN.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4306>
(cherry picked from commit 9b78793ead5c3b80e39524c2ed5648798d3c27e7)

js/gdm/authPrompt.js

index 2c6c616279b8f6cb5e6b8e12f7602f41b1054ecb..fe81c9914d8416475c429a7c0781bb3fe2a48a55 100644 (file)
@@ -736,7 +736,8 @@ export const AuthPrompt = GObject.registerClass({
         this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
         this.cancelButton.reactive = this._hasCancelButton;
         this.cancelButton.can_focus = this._hasCancelButton;
-        this._preemptiveAnswer = null;
+        if (oldStatus !== AuthPromptStatus.VERIFICATION_IN_PROGRESS)
+            this._preemptiveAnswer = null;
 
         if (this._userVerifier)
             this._userVerifier.cancel();